//
//  JFTRequest.h
//  JftMergeSDK
//
//  Created by zhl on 2017/2/10.
//  Copyright © 2017年 HLZ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface JFTRequest : NSObject
+(instancetype)requestManager;
-(void)getDataWithUrl:(NSString *)url WithParameters:(NSDictionary *)parDictionary Sucessfil:(void (^)(id returnData))Sucessful failure:(void (^)(id failerObjc))failure error:(void(^)(NSError * err))errorBlock;
- (void)postDataWithUrl:(NSString *)url WithParameters:(NSDictionary *)parDictionary WithNoncer:(NSString *)noncer Sucessfil:(void (^)(id))Sucessful failure:(void (^)(id failerObjc))failure error:(void (^)(NSError * err))errorBlock;
- (void)loadImageWithUrl:(NSURL *)url andImage:(UIImage *)image Sucessfil:(void (^)(id))Sucessful failure:(void (^)(id failerObjc))failure error:(void (^)(NSError * err))errorBlock;
- (void)downloadImageWithUrl:(NSURL *)url Sucessfil:(void (^)(id))Sucessful failure:(void (^)(id failerObjc))failure error:(void (^)(NSError * err))errorBlock;
-(BOOL)ConnectedToNetwork;
@end
